<?php
namespace App\Model;
use PDO;
class StudentlistModel{
	private $db;
	function __construct(){
		$this->db=new PDO(DB_TYPE.":host=".DB_HOST.";dbname=".DB_NAME,DB_USER,DB_PASS);
	}
	function getList(){
		$sql="select * from stu";
		$ret=$this->db->query($sql);
		return $ret->fetchAll(PDO::FETCH_ASSOC);
	}
	function getUser($id){
		
	}
	function del($id){
		
	}
	function add($arr){
		
	}
}
?>